package com.xnyzc.lhy.order.entity.version;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 版本更新记录表
 *
 * @author cuixiaojian
 * @since 2019-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UpdateHistory对象", description = "版本更新记录表")
public class UpdateHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "update_history_id", type = IdType.INPUT)
    private Integer updateHistoryId;

    @ApiModelProperty(value = "版本名称")
    @Version
    private String versionName;

    @ApiModelProperty(value = "版本编号")
    private Integer versionCode;

    @ApiModelProperty(value = "版本介绍")
    private String comment;

    @ApiModelProperty(value = "IOS,Android")
    private String operatorSystem;

    private String updateUser;

    private String updateName;

    @ApiModelProperty(value = "是否需要强制更新（0：否；1：是）")
    private Integer isForceUpdate;

    private Date updateTime;

    private String createUser;

    private String createName;

    private Date createTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer isDelete;

    @ApiModelProperty(value = "文件id")
    private Long fileId;

    @ApiModelProperty(value = "Passenger:乘客端Driver：司机端")
    private String clientId;

    private String tag;

    public static final String UPDATE_HISTORY_ID = "update_history_id";

    public static final String VERSION_NAME = "version_name";

    public static final String VERSION_CODE = "version_code";

    public static final String COMMENT = "comment";

    public static final String OPERATOR_SYSTEM = "operator_system";

    public static final String IS_FORCE_UPDATE = "is_force_update";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_NAME = "create_name";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_NAME = "update_name";

    public static final String CREATE_TIME = "create_time";

    public static final String IS_DELETE = "is_delete";

    public static final String FILE_ID = "file_id";

    public static final String CLIENT_ID = "client_id";

    public static final String TAG = "tag";
}
